package kr.hkit.powerjava.chapter08.Programming;

public class PgMain {

	public static void main(String[] args) {
		Circle pg1 = new Circle();
		
		pg1.setCx(2.0);
		pg1.setCy(20.);
		pg1.setR(2.3);
		
		System.out.println(pg1);
		
		Book pg2 = new Book();
		
		pg2.setTitle("Power JAVA");
		pg2.setAuthor("천인국");
		
		System.out.println(pg2);
		
		Employee pg5 = new Employee();
		pg5.setName("장주연");
		pg5.setSal(50000000);
		pg5.setTel("010-5557-4824");
		
		System.out.println(pg5);
		
		BankAccount pg6 = new BankAccount("장주연", 1234, 1000);
		BankAccount other = new BankAccount("몰라요", 12322, 20);
		
		System.out.println(pg6);
		System.out.println(other);
		
		pg6.transfer(100, other);
		
		System.out.println(pg6);
		System.out.println(other);
	}
}
